
import sys

#RabbitMQ操作类
from RabbitUtil   import RabbitUtil

#参数获取类
from Config     import *


#
if __name__ == "__main__":
    
    #获得配置参数
    RabbitParam = Config["RabbitMQ"];
    #初始化Rabbit
    RabbitH = RabbitUtil(host=RabbitParam["host"], user=RabbitParam["user"], passwd=RabbitParam["passwd"], vhost=RabbitParam["vhost"]);

    args = sys.argv
    QueueName = args[1];

    # 清除队列  QueueProv QueueDetail 
    RabbitH.queuePurge(QueueName);

    print(True)

    #释放资源
    RabbitH.Close();
    sys.exit(0);


